package org.hxyjs.entity;

import java.util.ArrayList;
import java.util.List;

public class OperatingrecordExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private Integer limit;

    private Integer offset;

    public OperatingrecordExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setOffset(Integer offset) {
        this.offset = offset;
    }

    public Integer getOffset() {
        return offset;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andOrnoIsNull() {
            addCriterion("orno is null");
            return (Criteria) this;
        }

        public Criteria andOrnoIsNotNull() {
            addCriterion("orno is not null");
            return (Criteria) this;
        }

        public Criteria andOrnoEqualTo(String value) {
            addCriterion("orno =", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoNotEqualTo(String value) {
            addCriterion("orno <>", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoGreaterThan(String value) {
            addCriterion("orno >", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoGreaterThanOrEqualTo(String value) {
            addCriterion("orno >=", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoLessThan(String value) {
            addCriterion("orno <", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoLessThanOrEqualTo(String value) {
            addCriterion("orno <=", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoLike(String value) {
            addCriterion("orno like", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoNotLike(String value) {
            addCriterion("orno not like", value, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoIn(List<String> values) {
            addCriterion("orno in", values, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoNotIn(List<String> values) {
            addCriterion("orno not in", values, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoBetween(String value1, String value2) {
            addCriterion("orno between", value1, value2, "orno");
            return (Criteria) this;
        }

        public Criteria andOrnoNotBetween(String value1, String value2) {
            addCriterion("orno not between", value1, value2, "orno");
            return (Criteria) this;
        }

        public Criteria andAnoIsNull() {
            addCriterion("ano is null");
            return (Criteria) this;
        }

        public Criteria andAnoIsNotNull() {
            addCriterion("ano is not null");
            return (Criteria) this;
        }

        public Criteria andAnoEqualTo(String value) {
            addCriterion("ano =", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotEqualTo(String value) {
            addCriterion("ano <>", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThan(String value) {
            addCriterion("ano >", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoGreaterThanOrEqualTo(String value) {
            addCriterion("ano >=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThan(String value) {
            addCriterion("ano <", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLessThanOrEqualTo(String value) {
            addCriterion("ano <=", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoLike(String value) {
            addCriterion("ano like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotLike(String value) {
            addCriterion("ano not like", value, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoIn(List<String> values) {
            addCriterion("ano in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotIn(List<String> values) {
            addCriterion("ano not in", values, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoBetween(String value1, String value2) {
            addCriterion("ano between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andAnoNotBetween(String value1, String value2) {
            addCriterion("ano not between", value1, value2, "ano");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeIsNull() {
            addCriterion("orOperatioTtime is null");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeIsNotNull() {
            addCriterion("orOperatioTtime is not null");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeEqualTo(String value) {
            addCriterion("orOperatioTtime =", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeNotEqualTo(String value) {
            addCriterion("orOperatioTtime <>", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeGreaterThan(String value) {
            addCriterion("orOperatioTtime >", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeGreaterThanOrEqualTo(String value) {
            addCriterion("orOperatioTtime >=", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeLessThan(String value) {
            addCriterion("orOperatioTtime <", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeLessThanOrEqualTo(String value) {
            addCriterion("orOperatioTtime <=", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeLike(String value) {
            addCriterion("orOperatioTtime like", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeNotLike(String value) {
            addCriterion("orOperatioTtime not like", value, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeIn(List<String> values) {
            addCriterion("orOperatioTtime in", values, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeNotIn(List<String> values) {
            addCriterion("orOperatioTtime not in", values, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeBetween(String value1, String value2) {
            addCriterion("orOperatioTtime between", value1, value2, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOroperatiottimeNotBetween(String value1, String value2) {
            addCriterion("orOperatioTtime not between", value1, value2, "oroperatiottime");
            return (Criteria) this;
        }

        public Criteria andOrdescribeIsNull() {
            addCriterion("orDescribe is null");
            return (Criteria) this;
        }

        public Criteria andOrdescribeIsNotNull() {
            addCriterion("orDescribe is not null");
            return (Criteria) this;
        }

        public Criteria andOrdescribeEqualTo(String value) {
            addCriterion("orDescribe =", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeNotEqualTo(String value) {
            addCriterion("orDescribe <>", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeGreaterThan(String value) {
            addCriterion("orDescribe >", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeGreaterThanOrEqualTo(String value) {
            addCriterion("orDescribe >=", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeLessThan(String value) {
            addCriterion("orDescribe <", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeLessThanOrEqualTo(String value) {
            addCriterion("orDescribe <=", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeLike(String value) {
            addCriterion("orDescribe like", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeNotLike(String value) {
            addCriterion("orDescribe not like", value, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeIn(List<String> values) {
            addCriterion("orDescribe in", values, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeNotIn(List<String> values) {
            addCriterion("orDescribe not in", values, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeBetween(String value1, String value2) {
            addCriterion("orDescribe between", value1, value2, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrdescribeNotBetween(String value1, String value2) {
            addCriterion("orDescribe not between", value1, value2, "ordescribe");
            return (Criteria) this;
        }

        public Criteria andOrnostateIsNull() {
            addCriterion("ornoState is null");
            return (Criteria) this;
        }

        public Criteria andOrnostateIsNotNull() {
            addCriterion("ornoState is not null");
            return (Criteria) this;
        }

        public Criteria andOrnostateEqualTo(Integer value) {
            addCriterion("ornoState =", value, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateNotEqualTo(Integer value) {
            addCriterion("ornoState <>", value, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateGreaterThan(Integer value) {
            addCriterion("ornoState >", value, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateGreaterThanOrEqualTo(Integer value) {
            addCriterion("ornoState >=", value, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateLessThan(Integer value) {
            addCriterion("ornoState <", value, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateLessThanOrEqualTo(Integer value) {
            addCriterion("ornoState <=", value, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateIn(List<Integer> values) {
            addCriterion("ornoState in", values, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateNotIn(List<Integer> values) {
            addCriterion("ornoState not in", values, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateBetween(Integer value1, Integer value2) {
            addCriterion("ornoState between", value1, value2, "ornostate");
            return (Criteria) this;
        }

        public Criteria andOrnostateNotBetween(Integer value1, Integer value2) {
            addCriterion("ornoState not between", value1, value2, "ornostate");
            return (Criteria) this;
        }
    }

    /**
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}